package com.example.mapper;

import com.example.pojo.ChatLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @Author fantasy
 * @Date 2025/1/20 22:30
 **/


@Mapper
public interface ChatLogMapper {
    @Insert("insert into chatlog (is_self,username,friend,content,type,is_active) values (#{isSelf},#{username},#{friend},#{content},#{type},#{isActive})")
    void addChatLog(ChatLog chatLog);

    List<ChatLog> getChatLog(Map map);

    List<ChatLog> getChatList();
}
